import http from './axios'

// 进行获取用户登录界面权限
export const getMenu = (params) =>{
    return http.request({
        url:'/permission/getMenu',
        method:'post',
        data:params
    })
}

export const getData = () =>{
    return http.request({
        url: '/home/getData',
        method: 'get'
    })
}
// 获取用户列表
export const getUser = (params) =>{
    return http.request({
        url: '/user/getUser',
        method: 'get',
        params
    })
}
// 添加用户
export const addUser = (data) =>{
    return http.request({
        url: '/user/addUser',
        method: 'post',
        data
    })
}
// 编辑用户
export const editUser = (data) =>{
    return http.request({
        url: '/user/edit',
        method: 'post',
        data
    })
}
// 删除用户
export const deleteUser = (data) => {
    return http.request({
        url: '/user/del',
        method: 'post',
        data
    })
}


